import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    // {
    // 	path: '/',
    // 	component: Login
    // },
    {
      path: '/',
      component: resolve => require(['../pages/Login.vue'], resolve)
    },
    {
      path: '/home',
      component: resolve => require(['../components/home.vue'], resolve),
      children:[
        {
          path: '/',
          component: resolve => require(['../pages/systemPage.vue'], resolve)
        },
        {
          path: 'system',
          component: resolve => require(['../pages/systemPage.vue'], resolve)
        },
        {
          path: 'singer',
          component: resolve => require(['../pages/singerPage.vue'], resolve)
        },
        {
          path: 'consumer',
          component: resolve => require(['../pages/consumerPage.vue'], resolve)
        },
        {
          path: 'songList',
          component: resolve => require(['../pages/songListPage.vue'], resolve)
        },
        {
          path: 'song',
          component: resolve => require(['../pages/songPage.vue'], resolve)
        },
        {
          path: 'songAndSongList',
          component: resolve => require(['../pages/songAndSongListPage.vue'], resolve)
        }
      ]
    }


  ],

})
